<?php
	require_once('include/soapclient.php');
	// initialize the soap client class
	$soap_client = new WarehouseServices();
	try{
		// contruct request object
		$pPGA = new Warehouse_playerPokerGamingActivity();
		$pPGA->date = '2009-03-14'; //revise to see whether the format is correct
		$pPGA->username = 'username'; 
		$pPGA->password = 'password';
		$pPGA->productGroupId = 111;
		$pPGA->systemId = 123;
		// get response object
		$pPGA_response = new Warehouse_playerPokerGamingActivityResponse();
		$pPGA_response = $soap_client->Warehouse_playerPokerGamingActivity($pPGA);
		// display result
		$pPGA_response->Warehouse_playerPokerGamingActivityResult;
	}catch(SoapFault $e){
			$error = $e->getMessage();
			$errno = $e->getCode();
			echo "<div><b>An error occurred:</b><br><pre><i>$error</i></pre></div>";
	};
?>